package name.jiaosha.air.iostorage.domain;

import java.math.BigDecimal;

import com.ali8ba.Domain;

public class SaleItem extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6307537980621408251L;

	private Integer id;
	/**
	 * 从哪张入库单据出货
	 */
	private Integer fromDocID;

	/**
	 * 主表单据号
	 */
	private String docID;
	/**
	 * 商品编码
	 */
	private String productCode;
	/**
	 * 商品名称
	 */
	private String name;
	/**
	 * 单位
	 */
	private String unit;
	/**
	 * 数量　
	 */
	private BigDecimal amount;
	/**
	 * 单价（销售价）
	 */
	private BigDecimal unitPrice;
	/**
	 * 剩余量(未被使用的量)
	 */
	private BigDecimal surplus;
	
	/**
	 * 仓库id
	 */
	private Integer storageId;
	public SaleItem(){
		
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDocID() {
		return docID;
	}

	public void setDocID(String docID) {
		this.docID = docID;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public BigDecimal getSurplus() {
		return surplus;
	}

	public void setSurplus(BigDecimal surplus) {
		this.surplus = surplus;
	}

	public Integer getStorageId() {
		return storageId;
	}

	public void setStorageId(Integer storageId) {
		this.storageId = storageId;
	}

	public Integer getFromDocID() {
		return fromDocID;
	}

	public void setFromDocID(Integer fromDocID) {
		this.fromDocID = fromDocID;
	}
	
}
